Skip to content

Conversation

@patrickfreed
Copy link
Contributor

SWIFT-434

As the ticket describes, this PR adds documentation for describing how to ensure clients are using the latest TLS protocols. As part of that, figured it made sense to write the rest of the guide, since we didn't already have one. The guide was heavily influenced by pymongo's guide on the same topic.

One API change that's important to note: I added a generic tls option to ClientOptions, since it seems reasonable to me that a user would want to enable TLS but not necessarily identify all the client's connecting to the database. This option is included in the URI options spec, and I think most drivers support it (pymongo does at least). cc @mbroadst

@patrickfreed patrickfreed requested review from kmahar and mbroadst April 1, 2020 21:56
Copy link
Contributor

@kmahar kmahar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks really good! just some small nits

Copy link
Contributor

@kmahar kmahar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm mod one more nit

Guides/TLS.md Outdated
@@ -0,0 +1,81 @@
# TLS/SSL and MongoSwift
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops I missed that MongoSwift was used in the title too :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated to "Swift Driver TLS/SSL" guide. Also filed a ticket for updating the various other guides as well

@codecov-io
Copy link

Codecov Report

Merging #438 into master will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
+ Coverage   77.88%   77.94%   +0.06%     
==========================================
  Files         115      115              
  Lines       12330    12332       +2     
==========================================
+ Hits         9603     9612       +9     
+ Misses       2727     2720       -7     
Impacted Files Coverage Δ
Sources/MongoSwift/ConnectionPool.swift 47.66% <100.00%> (+0.99%) ⬆️
Sources/MongoSwift/MongoClient.swift 84.89% <100.00%> (+0.10%) ⬆️
...s/MongoSwiftSyncTests/CommandMonitoringTests.swift 92.37% <0.00%> (-1.44%) ⬇️
Tests/MongoSwiftSyncTests/SyncTestUtils.swift 61.29% <0.00%> (-0.82%) ⬇️
Tests/BSONTests/CodecTests.swift 99.84% <0.00%> (-0.01%) ⬇️
Sources/MongoSwift/BSON/BSONValue.swift 75.13% <0.00%> (ø)
Tests/MongoSwiftTests/ReadPreferenceTests.swift 100.00% <0.00%> (ø)
Tests/MongoSwiftTests/AsyncTestUtils.swift 63.79% <0.00%> (+2.12%) ⬆️
Sources/MongoSwift/ReadPreference.swift 95.45% <0.00%> (+2.70%) ⬆️
Sources/MongoSwift/BSON/CodableNumber.swift 64.64% <0.00%> (+4.83%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 39a543f...7e1e052. Read the comment docs.

@patrickfreed patrickfreed merged commit bcbb8b8 into mongodb:master Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants